package com.hoshiicloud.elasticsearch.repository;


import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

/**
 * sku ES操作类
 */
public interface SkuRepository extends ElasticsearchRepository<com.hoshiicloud.elasticsearch.entity.Sku, Long> {
    /**
     * 搜索查询
     *
     * @param keywords 商品关键字
     * @param page     分页信息
     * @return
     */
    Page<com.hoshiicloud.elasticsearch.entity.Sku> findBySkuTitle(String keywords, Pageable page);

}
